PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-09-10 10:24:12.784763+00:00 (UTC)
In US/Central Time, this is 2024-09-10 05:24:12.784763-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/e3ec77dc2e5bf182d448b213605afade772cb8a61eaeb4b00ad4dd6512567ea9.png
We are just generating a random time serie here.
../../_images/9f35cbebe4c6e7dd23d59eb8629c2fd042b61e21a605282c03c4dd0849a9aa73.png
../../_images/6c991c1411339f0d001ec69f9d4a117764bcbdabd88a2de5619c677e209236be.png